package exmple;

public class Student implements impl {
    public int age;
    private String name;
    private float salary;

    public Student() {
        System.out.println("这是个student");
    }

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                '}';
    }

    public Student update(int age) {
        this.age += age;
        return this;
    }

    public int anInt(int a) {
        return a;
    }

    public Student(Integer age, String name, Float salary) {
        this.age = age;
        this.name = name;
        this.salary = salary;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getSalary() {
        return salary;
    }

    public void setSalary(float salary) {
        this.salary = salary;
    }
}
